import request from '@/utils/request'

// 获取角色列表接口的方法

export const getRolesAPI = (params) => {
  return request.get('/sys/role', { params })
}

// 获取角色添加接口
export const addRole = (data) => {
  return request.post('/sys/role', data)
}

// 修改角色接口
export const confimEditAPI = (data) => {
  return request.put(`/sys/role/${data.id}`, data)
}

// 调取删除角色接口
export const delEditAPI = (id) => {
  return request.delete(`/sys/role/${id}`)
}
